﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="MauBieuChuaDuyet.aspx.cs" Inherits="QLVB_User_MauBieuChuaDuyet" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 708px; border: double;">
        <tr>
            <td colspan="2" style="text-align: center; text-decoration: underline">
                <asp:Label ID="lblTitle" runat="server" Text="SỬA MẪU BIỂU CHƯA DUYỆT"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblTenFileMauBieuCanTim" runat="server" 
                    Text="Tên file mẫu biểu cần tìm"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenFileMauBieuCanTim" runat="server"></asp:TextBox>
                <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="100px" 
                    onclick="btnTimKiem_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvDanhSachMauBieuChuaDuyet" runat="server" 
                    AutoGenerateColumns="False" 
                    onpageindexchanging="gvDanhSachMauBieuChuaDuyet_PageIndexChanging" 
                    Width="100%" DataKeyNames="MaMauBieu" 
                    onrowcancelingedit="gvDanhSachMauBieuChuaDuyet_RowCancelingEdit" 
                    onrowediting="gvDanhSachMauBieuChuaDuyet_RowEditing" 
                    onrowupdating="gvDanhSachMauBieuChuaDuyet_RowUpdating" 
                    onrowdatabound="gvDanhSachMauBieuChuaDuyet_RowDataBound" 
                    AllowPaging="True" Caption="Nhấn Edit trước khi nhập thông tin thay đổi">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblNoiDungMauBieu" runat="server" Text="Nội dung mẫu biểu"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNoiDungMauBieu" runat="server" Width="99%" 
                                                Text='<%# Eval("NoiDungMauBieu") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblChonFileMauBieu" runat="server" Text="Chọn mẫu biểu đính kèm"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="fuplTenFileMauBieu" runat="server" />
                                            <asp:HiddenField ID="hfTenFileMauBieu" runat="server" 
                                                Value='<%# Eval("TenFileMauBieu") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblChonCongVanDinhKem" runat="server" 
                                                Text="Chọn công văn đính kèm"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="fuplTenFileCongVan" runat="server" />
                                            <asp:HiddenField ID="hfTenFileCongVan" runat="server" 
                                                Value='<%# Eval("TenFileCongVan") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblMaNoiPhatHanh" runat="server" Text="Mã nơi phát hành"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:ComboBox ID="cmbMaNoiPhatHanh" runat="server" AutoPostBack="True" 
                                                onselectedindexchanged="cmbMaNoiPhatHanh_SelectedIndexChanged">
                                            </asp:ComboBox>
                                            <asp:TextBox ID="txtTenDonViSoanThao" runat="server" BackColor="#FFFFCC" 
                                                ForeColor="Red" Width="99%" Text='<%# Eval("TenDonViSoanThao") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        </table>
</asp:Content>

